#!/bin/bash

echo "Starting MCP Server..."
cd server
nohup uv run python main.py > ../logs/server.log 2>&1 &
echo $! > ../server.pid
cd ..

echo "Starting Client API Server..."
cd client
nohup uv run python main.py > ../logs/client.log 2>&1 &
echo $! > ../client.pid
cd ..

echo "Both services are starting in the background."